<?php

/**
 * Journal filter form.
 *
 * @package    theconnexter
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class JournalFormFilter extends BaseJournalFormFilter
{
  public function configure()
  {
	$dateWidget = new sfWidgetFormI18nDate(array(
		'format' => '%day%/%month%/%year%',
		'month_format' => 'short_name',
		'culture' => 'fr'));
	
	$this->widgetSchema['created_at'] = new sfWidgetFormJQueryDate(array(
		'image'  => '/images/calendar2.png',
		'culture'=> 'fr',
		'date_widget' => $dateWidget
	));
	
	$this->widgetSchema['updated_at'] = new sfWidgetFormJQueryDate(array(
		'image'  => '/images/calendar2.png',
		'culture'=> 'fr',
		'date_widget' => $dateWidget
	));
	
	$this->widgetSchema['dateApparution'] = new sfWidgetFormJQueryDate(array(
		'image'  => '/images/calendar2.png',
		'culture'=> 'fr',
		'date_widget' => $dateWidget
	));
	
  }
}
